﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DTO;
using BUS;

namespace GUI
{
    public partial class QuanLyBanVe : Form
    {
        private string maNV;
        public QuanLyBanVe()
        {
            InitializeComponent();
        }

        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
         AboutBox aboutBox = new AboutBox();
            aboutBox.Show();
        }

        private void linkLabel_DangXuat_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Application.Restart();
        }

        private void chuyếnBayToolStripMenuItem_Click(object sender, EventArgs e)
        {
           ChuyenBay  frm = new ChuyenBay ();
            frm.Show();
        }

        private void hànhKháchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            HanhKhach frm = new HanhKhach();
            frm.Show();
        }

        private void xóaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ThemVe frm = new ThemVe(maNV);
            frm.Show();
        }

        private void sửaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ChuyenBay frm = new ChuyenBay();
            frm.Show();
        }

        private void sânBayToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SanBay frm = new SanBay();
            frm.Show();
        }

        private void lịchBayToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LichBay frm = new LichBay();
            frm.Show();
        }

        private void hànhKháchToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            HanhKhach frm = new HanhKhach();
            frm.Show();
        }

        private void sânBayToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            SanBay frm = new SanBay();
            frm.Show();
        }

        private void lịchBayToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            LichBay frm = new LichBay();
            frm.Show();
        }

        private void thôngTinHànhKháchToolStripMenuItem_Click(object sender, EventArgs e)
        {

            HanhKhach frm = new HanhKhach();
            frm.Show();
        }

        private void chuyếnBayToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ChuyenBay frm = new ChuyenBay();
            frm.Show();
        }

        private void sânBayToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            SanBay frm = new SanBay();
            frm.Show();
        }

        private void lịchBayToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            LichBay frm = new LichBay();
            frm.Show();
        }

        private void lậpBáoCáoToolStripMenuItem_Click(object sender, EventArgs e)
        {
           // LapBaoCao  frm = new LapBaoCao();
            //frm.Show();
        }
        
        private void thoátToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void thayĐổiQuyĐịnhToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ThayDoiQuyDinh frm = new ThayDoiQuyDinh();
            frm.Show();
        }

        private void báoCáoThángToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LapBaoCaoThang frm = new LapBaoCaoThang();
            frm.Show();
        }

        private void báoCáoNămToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LapBaoCaoNam frm = new LapBaoCaoNam();
            frm.Show();
        }

        private void QuanLyBanVe_Load(object sender, EventArgs e)
        {
            DangNhap login = new DangNhap();
            login.ShowDialog();
            if (login.maNV == string.Empty)
            {
                this.Close();
            }
            maNV = login.maNV;
           
        }

        private void thêmToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }
    }
}
